package Kama.kama240725;

import java.util.Scanner;

/**
 * <p>
 * <p/>
 *
 * @author zhangchengwei1
 * @since 2024/7/25 20:23
 */
public class Main1 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] ans = new int[n];
        sc.nextLine();
        int cur=0;
        while (n > 0) {
            int minSwap=-1;
            String[] s = sc.nextLine().split(" ");
            int k=Integer.parseInt(s[1]);
            int pos1=Integer.parseInt(s[2])-1;
            int pos2=Integer.parseInt(s[3])-1;
            int pos3=Integer.parseInt(s[4])-1;//三个默认有序
            //找到一个点，从左往右
            //对于输入，初始化一个数组保存
            int[] curArr=new int[Integer.parseInt(s[0])];
            for(int i=0;i<curArr.length;i++){

            }

            ans[cur]=minSwap;
            cur++;
            n--;
        }

    }
}
